w.Header().Set needs to be called before WriteHeader, because WriteHeader sends all the headers and calls to Set won't have any effect afterwards. Change-Id: Ia6b1c5e2cd54201a6c3980d63de04a0095b2db9a
Change-Id: Icc3cc9e6997b715c865fee9f96c8a848b694f41f