Remove spring-cloud-function-adapter-aws-web, fix Proxy response to return empty collection if header is not present
This commit is contained in:
@@ -27,6 +27,7 @@ import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
@@ -264,6 +265,9 @@ public class ProxyHttpServletResponse implements HttpServletResponse {
|
||||
*/
|
||||
@Override
|
||||
public List<String> getHeaders(String name) {
|
||||
if (!this.headers.containsKey(name)) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
return this.headers.get(name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user