Compare commits
2 Commits
2c1cccf25a
...
1e2503ef44
Author | SHA1 | Date | |
---|---|---|---|
1e2503ef44 | |||
ae718e97f5 |
@ -63,7 +63,6 @@ public class FileHeaderChecker {
|
||||
* @return true if the string contains a known file header, false otherwise
|
||||
*/
|
||||
public static boolean containsFileHeader(String input) {
|
||||
System.out.println("Checking for file headers in: " + input);
|
||||
byte[] byteArray = stringToByteArray(input);
|
||||
|
||||
for (byte[] header : FILE_HEADERS.values()) {
|
||||
|
@ -3,7 +3,6 @@ package cc.fascinated.backend.controller;
|
||||
import cc.fascinated.backend.model.Paste;
|
||||
import cc.fascinated.backend.service.PasteService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
|
Reference in New Issue
Block a user