Skip to content

Commit

Permalink
fix: Fix wrong content type (#1998)
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCizmar authored Nov 24, 2023
1 parent 162f636 commit 24878ee
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package io.tolgee.configuration

import org.springframework.context.annotation.Configuration
import org.springframework.http.converter.HttpMessageConverter
import org.springframework.http.converter.xml.MappingJackson2XmlHttpMessageConverter
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer

@Configuration
class WebMvcConfiguration : WebMvcConfigurer {
override fun configureMessageConverters(converters: MutableList<HttpMessageConverter<*>?>) {
converters.removeIf { it is MappingJackson2XmlHttpMessageConverter }
}
}

0 comments on commit 24878ee

Please sign in to comment.