Commit 4e2a97da authored by jan.koester's avatar jan.koester
Browse files

set cookie no throws

parent 34305974
Loading
Loading
Loading
Loading
+1 −1
Changes for src/http.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -1083,7 +1083,7 @@ void libhttppp::HttpCookie::setcookie(HttpResponse *curresp,
    HTTPException httpexception;
    if(!key || !value){
        httpexception[HTTPException::Note] << "no key or value set in cookie!";
        return;
        throw httpexception;
    }
    HttpHeader::HeaderData *dat=curresp->setData("set-cookie");
    *dat << key << "=" << value;