-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTP date format fixes #984
Conversation
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Codecov Report
@@ Coverage Diff @@
## master #984 +/- ##
=========================================
Coverage 59.11% 59.12%
Complexity 1548 1548
=========================================
Files 32 32
Lines 4334 4335 +1
=========================================
+ Hits 2562 2563 +1
Misses 1772 1772
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!! Thanks @osma!
Verified with REDbot.org. Current situation (before the merge):
|
Bookmarked! Great tool, thanks! |
After the merge:
(and the error is gone)
Yes, it's good - but the CAPTCHAs are tiring. They didn't use them before but probably there was some abuse they needed to counter |
I'd like to enable it for the build of some tools I am working on. They have the source code available https://github.com/mnot/redbot, and even provide a Docker image. In theory it should be possible to spin up a Docker instance with the latest SKOSMOS deployed, and another container with REDbot. And then just use curl or something to query the REDbot container giving the URL to the SKOSMOS container 🤔 |
Hmm - in my understanding it's an interactive debugging tool, not something to automate. But maybe I've missed some aspect? |
No, I think you are correct. But assuming it's possible to create a |
While testing HTTP 304 / If-Modified-Since functionality, recently implemented in PR #869 by @kinow, I noticed that the date formats expected by Skosmos in If-Modified-Since headers and produced in Last-Modified headers are not actually compliant with the relevant RFCs (RFC 7231 / 2616 / 1123). I also noticed other problems related to that functionality. This PR fixes:
filter_input
function instead of$_SERVER
(possibly more secure, and in line with other places in the codebase where HTTP headers are accessed)Any comments @kinow before I merge this?