File tree Expand file tree Collapse file tree
agent_api/src/main/java/dev/aikido/agent_api/context Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package dev .aikido .agent_api .context ;
22
3- import dev .aikido .agent_api .helpers .ContentDispositionFilename ;
3+ import com .google .gson .Gson ;
4+ import com .google .gson .GsonBuilder ;
45import dev .aikido .agent_api .storage .Hostnames ;
56import dev .aikido .agent_api .storage .RedirectNode ;
67
@@ -70,13 +71,7 @@ public String getRemoteAddress() {
7071 return remoteAddress ;
7172 }
7273 public HashMap <String , List <String >> getHeaders () {
73- HashMap <String , List <String >> result = new HashMap <>(headers );
74-
75- // parse special headers like Content-Disposition to already extract certain values
76- Optional <String > filename = ContentDispositionFilename .extract (getHeader ("Content-Disposition" ));
77- filename .ifPresent (s -> result .put ("Content-Disposition[filename]" , List .of (s )));
78-
79- return result ;
74+ return headers ;
8075 }
8176 public String getHeader (String key ) {
8277 return getHeader (this .headers , key );
You can’t perform that action at this time.
0 commit comments