Skip to content

Commit 17d1ff8

Browse files
rootjengelh
authored andcommitted
http: rework AF line parsing
Fixes: gromox-2.48-190-g344f317e6 References: GXF-1789, DESK-2497
1 parent 765b9ef commit 17d1ff8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

exch/http/http_parser.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,8 +1003,7 @@ int http_parser::auth_exthelper(http_context &ctx, const char *prog,
10031003
auto v = gx_split(thisline, ' ');
10041004
if (v.size() == 0)
10051005
return -1;
1006-
auto idx = v.size() == 1 ? 0 : 1;
1007-
return auth_finalize(ctx, v[idx].c_str());
1006+
return auth_finalize(ctx, v.back().c_str());
10081007
} else if (output[0] == 'O' && output[1] == 'K' && HX_isspace(output[2])) {
10091008
/* squid-3.4-style */
10101009
auto v = gx_split(thisline, ' ');

0 commit comments

Comments
 (0)