Adjust test 780 to verify.
Reported-by: newfunction
Closes #15330
do {
while(*p && ISBLANK(*p))
p++;
- if(strncasecompare("max-age=", p, 8)) {
+ if(strncasecompare("max-age", p, 7)) {
bool quoted = FALSE;
CURLofft offt;
char *endp;
if(gotma)
return CURLE_BAD_FUNCTION_ARGUMENT;
- p += 8;
+ p += 7;
while(*p && ISBLANK(*p))
p++;
+ if(*p++ != '=')
+ return CURLE_BAD_FUNCTION_ARGUMENT;
+ while(*p && ISBLANK(*p))
+ p++;
+
if(*p == '\"') {
p++;
quoted = TRUE;
Server: test-server/fake swsclose
Content-Type: text/html
Funny-head: yesyes
-Strict-Transport-Security: max-age=1000
+Strict-Transport-Security: max-age = 1000
</data>
</reply>
Server: test-server/fake swsclose
Content-Type: text/html
Funny-head: yesyes
-Strict-Transport-Security: max-age=1000
+Strict-Transport-Security: max-age = 1000
</stdout>