title: Request Header is getting as null in spring mvc
body: <p>I am having two mapping methods in my controller. one is redirecting to other.
      Before redirecting I'm setting a header in response. But I getting the request header as null.
      These are my methods in controller. both are in same controller.</p>
  
  <pre><code>@RequestMapping(value="/testStart", method=RequestMethod.POST)
          public String testStart(HttpServletRequest request, HttpServletResponse response){
              String token = "126712810-1289291":
  
              response.addHeader("authToken", token);
  
              return "redirect:/test";
          }
  @RequestMapping(value="/test", method={ RequestMethod.POST, RequestMethod.GET })
      public String getTestPage(Model model, HttpServletRequest request, HttpServletResponse response){
  
          String token = request.getHeader("authToken");
          System.out.println(token);  //prints null
          model.addAttribute("Testtoken", token);
          System.out.println("Test page about to load ..");
          return "test";
  
  }
  </code></pre>
  
  <p>I'm using postman client to test this api. It is hitting the url and redirecting to other url. but the header is null.
  I don't know what's wrong. can any one help me to figure this out? Thanks</p>