jeremycw / httpserver.h

Single header library for writing non-blocking HTTP servers in C
MIT License
1.78k stars 143 forks source link

Remove include of common.h #66

Closed marcrittinghaus closed 1 year ago

marcrittinghaus commented 1 year ago

When including httpserver.h the build fails with the following error because common.h is included without protecting it with HTTPSERVER_IMPL. The commit removes the include as it is not necessary.

request_util.h:4:10: fatal error: common.h: No such file or directory  
jeremycw commented 1 year ago

Thanks for pointing this out. The functional tests should have caught this since the test server is built with the httpserver.h file but it seems like it was getting compiled with include paths to these headers set. Anyway I have fix these issues independently.