1 |
/* |
/* |
2 |
http-message.c - HTTP message object |
http-message.c - HTTP message object |
3 |
Copyright (C) 2008 siliconforks.com |
Copyright (C) 2008, 2009 siliconforks.com |
4 |
|
|
5 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
6 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
22 |
#include "http-server.h" |
#include "http-server.h" |
23 |
|
|
24 |
#include <assert.h> |
#include <assert.h> |
|
#include <errno.h> |
|
25 |
#include <string.h> |
#include <string.h> |
26 |
|
|
27 |
#include "stream.h" |
#include "stream.h" |
431 |
skip_lws(&p); |
skip_lws(&p); |
432 |
|
|
433 |
if (*p == '\0') { |
if (*p == '\0') { |
434 |
|
/* value was empty: ignore this header??? */ |
435 |
free(name); |
free(name); |
436 |
Stream_delete(stream); |
continue; |
|
return -1; |
|
437 |
} |
} |
438 |
|
|
439 |
/* skip backward over LWS, starting from the last char in the buffer */ |
/* skip backward over LWS, starting from the last char in the buffer */ |