submitAsJSON icon indicating copy to clipboard operation
submitAsJSON copied to clipboard

Will this script change http request Content-Type header?

Open uniquejava opened this issue 3 years ago • 0 comments

Seems not. Spring boot application will still reject this form submit request with http status code 415.

And with the following error log.

[10-15 12:52:10 WARN ] [o.s.w.s.m.s.DefaultHandlerExceptionResolver] Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'text/plain;charset=UTF-8' not supported]

I guest this will only work for these servers which do not check Content-Type header.

uniquejava avatar Oct 15 '22 04:10 uniquejava