Skip to content

Commit 60ca594

Browse files
luca-schleckerThe-EDev
authored andcommitted
cookie_parser: use utility::trim instead of boost::trim.
1 parent 982e62e commit 60ca594

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/crow/middlewares/cookie_parser.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22
#include <iomanip>
3-
#include <boost/algorithm/string/trim.hpp>
3+
#include "crow/utility.h"
44
#include "crow/http_request.h"
55
#include "crow/http_response.h"
66

@@ -234,7 +234,7 @@ namespace crow
234234
if (pos_equal == cookies.npos)
235235
break;
236236
std::string name = cookies.substr(pos, pos_equal - pos);
237-
boost::trim(name);
237+
utility::trim(name);
238238
pos = pos_equal + 1;
239239
while (pos < cookies.size() && cookies[pos] == ' ')
240240
pos++;
@@ -244,7 +244,7 @@ namespace crow
244244
size_t pos_semicolon = cookies.find(';', pos);
245245
std::string value = cookies.substr(pos, pos_semicolon - pos);
246246

247-
boost::trim(value);
247+
utility::trim(value);
248248
if (value[0] == '"' && value[value.size() - 1] == '"')
249249
{
250250
value = value.substr(1, value.size() - 2);

0 commit comments

Comments
 (0)