little test for groups
This commit is contained in:
parent
cf5695e011
commit
e50034dd00
2 changed files with 6 additions and 1 deletions
|
@ -123,4 +123,5 @@ CREATE TABLE `containsTags` (
|
|||
CONSTRAINT `containsTags_ibfk_2` FOREIGN KEY (`fk_puzzle`) REFERENCES `puzzles` (`id_puzzle`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
|
||||
|
||||
INSERT INTO chapters (id_chapter, name) VALUES (1, 'chapter 1');
|
||||
INSERT INTO players (pseudo, email, passwd,firstname,lastname) VALUES ('userTest', 'test@peerat.dev', '$argon2id$v=19$m=15360,t=2,p=1$$cAQwfs30Bf2rQGj86bpz7i59TlsuOFPiXeNpLlVu4AY', 'a','b')
|
|
@ -98,6 +98,10 @@ public class WebClient {
|
|||
this.writer.write(type+" "+route+" HTTP/1.1\n");
|
||||
if(this.token != null) this.writer.write("Authorization: Bearer "+this.token+"\n");
|
||||
for(String send : this.sendHeaders) this.writer.write(send+"\n");
|
||||
int length = 0;
|
||||
for(String value : content) length+=value.length();
|
||||
length+=content.length-1;
|
||||
this.writer.write("Content-length: "+length+"\n");
|
||||
|
||||
this.writer.write("\n");
|
||||
for(String value : content) this.writer.write(value+"\n");
|
||||
|
|
Loading…
Add table
Reference in a new issue