Skip to content
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

[MSITE-872] Set the Content-Type header #48

Closed
wants to merge 21 commits into from

Conversation

qualitesys
Copy link

Set the header Content-Type according to the file extension
See https://issues.apache.org/jira/browse/MSITE-872

Copy link
Contributor

@elharo elharo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs tests

Copy link
Contributor

@elharo elharo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests are required

@qualitesys
Copy link
Author

Tests are needed : I need to first start the jetty server (mvn site:run) then make a simple GET http call, then stop the jetty server. Is there a similar Integration Test in the project ?
Thanks for your help

@elharo
Copy link
Contributor

elharo commented Apr 26, 2021

I think this could be tested as a unit test that invokes the method directly and confirms the response.

@qualitesys
Copy link
Author

Tested ok in standalone mode and ok in the CI chain

@michael-o
Copy link
Member

The test looks convoluted to me. Why not fire up Jetty, and get the Content-Type header from response? Done.

@qualitesys qualitesys requested a review from elharo May 2, 2021 17:40
@qualitesys
Copy link
Author

Could someone help me in creating such a test, is there an example ? Thanks

@michael-o
Copy link
Member

This PR isn't good. I have a decent one locally. Will commit soon.

@michael-o michael-o closed this Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants