We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cd1076 commit 6032ff3Copy full SHA for 6032ff3
Client/src/main/java/stream/flarebot/webhook_distributor/events/Event.java
@@ -3,6 +3,7 @@
3
import spark.Request;
4
import stream.flarebot.webhook_distributor.Sender;
5
6
+import javax.annotation.Nonnull;
7
import javax.annotation.Nullable;
8
9
public class Event {
@@ -24,8 +25,9 @@ public String getAuthorization() {
24
25
return this.request.headers("Authorization");
26
}
27
28
+ @Nonnull
29
public String getIP() {
- return this.request.ip();
30
+ return this.request.headers("Sent-By");
31
32
33
protected Request getRequest() {
0 commit comments