28 Commits

Author SHA1 Message Date
Joachim Van Herwegen
21b2850696 fix: Remove MS-Author-Via header 2022-08-05 15:58:29 +02:00
Wannes Kerckhove
283c301f08 feat: new helper functions to replace regexes #807
Implemented new StringUtil helper functions: splitCommaSeparated, sanitizeUrlPart, isValidFileName.
Added helper functions to HeaderUtil: matchesAuthorizationScheme, hasScheme.
Added unit tests for the new helper functions.
Refactored codebase to use helper functions instead of regexes if applicable.
2022-04-13 11:26:07 +02:00
Joachim Van Herwegen
97e600bf4f fix: Undo authorization on OPTIONS requests 2022-04-04 13:35:15 +02:00
Joachim Van Herwegen
6e98c6aae4 feat: Dynamically generate Allow and Accept-* headers 2022-03-29 14:52:36 +02:00
Joachim Van Herwegen
ad3edcf1a8 feat: Handle OPTIONS requests in OperationHandler 2022-03-18 14:15:12 +01:00
Joachim Van Herwegen
77d695c8b6 feat: Expose Last-Modified and ETag headers 2021-08-18 13:16:08 +02:00
Ruben Verborgh
643ceced36 fix: Expose Link via CORS. 2021-07-28 15:37:35 +02:00
Ruben Verborgh
0271536313 fix: Expose WAC-Allow via CORS.
Closes https://github.com/solid/community-server/issues/873
2021-07-28 15:35:12 +02:00
Joachim Van Herwegen
b604dd8331 feat: Add showStackTrace CLI variable 2021-06-07 13:54:38 +02:00
Joachim Van Herwegen
68f2446e27 fix: Various minor fixes 2021-06-01 15:38:55 +02:00
Joachim Van Herwegen
452032e312 feat: Split preset configurations by feature 2021-05-19 09:40:40 +02:00
Joachim Van Herwegen
fa8d406f34 test: Create single function for port generation
This reduces the chances of several integration tests
re-using the same port.
2021-05-04 11:27:13 +02:00
Stijn Taelemans
ce1f4300ff
feat: Replace express with native http module
* refactor: replace express with native http module

* fix: 404 when unhandled

* chore: removed express dependency

* chore: updated package-lock.json

* docs: added documentation for BaseHttpServerFactory

* chore: updated package-lock.json

Co-authored-by: Arthur Joppart <arthur@digita.ai>
2021-02-11 10:15:40 +01:00
Joachim Van Herwegen
73acb9cd52 fix: Prevent race condition in OPTIONS call 2021-02-05 17:18:45 +01:00
Ruben Verborgh
153d2d9fe4 feat: Set Accept-Patch header. 2021-01-26 10:52:38 +01:00
Ruben Verborgh
8c2f737fe0 feat: Set MS-Author-Via header.
Closes https://github.com/solid/community-server/issues/539
2021-01-26 10:52:38 +01:00
Ruben Verborgh
693d48b9eb feat: Set Vary header. 2021-01-21 08:50:30 +01:00
Ruben Verborgh
ee072b038a fix: Allow credentials over CORS. 2021-01-04 14:06:02 +01:00
Matthieu Bosquet
a73936f522 refactor: Add HttpHandlerInput interface 2021-01-02 13:39:45 +01:00
Ruben Verborgh
a5c372c37c fix: Expose Location header via CORS.
Fixes https://github.com/solid/community-server/issues/441
2020-12-27 15:15:55 +01:00
Ruben Verborgh
9dcb4fb603 test: Make integration test names consistent. 2020-12-22 00:33:33 +01:00
Ruben Verborgh
e4c4d2a781 test: Move configuration into integration folder. 2020-12-22 00:33:33 +01:00
Joachim Van Herwegen
2443f2c755 fix: Execute only one main handler. 2020-12-18 10:56:26 +01:00
Ruben Verborgh
7cae14acf7 test: Close server at end of tests. 2020-12-08 20:08:40 +00:00
Joachim Van Herwegen
1a043aca3f feat: integrate pod creation 2020-12-02 13:01:38 +01:00
Ruben Verborgh
eabe6bc4ed feat: Implement --baseUrl flag.
Closes https://github.com/solid/community-server/issues/372
2020-12-01 19:09:52 +01:00
Ruben Verborgh
fc3942b372 change: Move WebSocketAdvertiser to middleware. 2020-11-30 00:54:21 +01:00
Ruben Verborgh
023ff80f48 refactor: Separate middleware from Express. 2020-11-30 00:44:18 +01:00