title: Spring changing media type on URI with .au at the end
body: <p>Currently implemented a REST endpoint as below:  </p>
  
  <pre><code>@RequestMapping(path = "/login/user/{username:.+}", method = POST, produces = "application/json; charset=utf-8")
  @ResponseStatus(code = HttpStatus.OK)
  public User userLogin(@PathVariable("username") String username, @RequestBody Password password) {
      //do stuff
      return new User(UUID.randomUUID());
  }
  </code></pre>
  
  <p>I currently use email address as a username, and when I use one ending in .au, the endpoint returns a 406 Content not acceptable.</p>
  
  <p>I tried playing around and changing the above to this </p>
  
  <pre><code>@RequestMapping(path = "/login/user/{username:.+}", method = POST, produces = "application/json; charset=utf-8")
  @ResponseStatus(code = HttpStatus.OK)
  public String userLogin(@PathVariable("username") String username, @RequestBody Password password) {
      //do stuff
      return "blah";
  }
  </code></pre>
  
  <p>When I access it, it prompts me to download an .au file (audio format made by Sun microsystems...), which contains "blah".
  If I check the value of the username anytime within the method, I get the correct email address, with .au included.</p>
  
  <p>I'm guessing something in the Spring stack is parsing the .au and trying to enforce a different media type so now it ignores <em>application/json</em></p>