Skip to content

Commit 7380b08

Browse files
committed
pdv.2
1 parent b3d534c commit 7380b08

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dump1090.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2233,8 +2233,8 @@ int handleHTTPRequest(struct client *c) {
22332233
struct stat sbuf;
22342234
int fd = -1;
22352235

2236-
if (stat("gmap.html",&sbuf) != -1 &&
2237-
(fd = open("gmap.html",O_RDONLY)) != -1)
2236+
if (stat("/usr/bin/gmap.html",&sbuf) != -1 &&
2237+
(fd = open("/usr/bin/gmap.html",O_RDONLY)) != -1)
22382238
{
22392239
content = malloc(sbuf.st_size);
22402240
if (read(fd,content,sbuf.st_size) == -1) {

gmap.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
color:#333;
3333
}
3434
</style>
35-
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">
35+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js">
3636
</script>
3737
<script type="text/javascript"
38-
src="https://maps.googleapis.com/maps/api/js?sensor=true">
38+
src="https://maps.google.cn/maps/api/js?sensor=true">
3939
</script>
4040
<script type="text/javascript">
4141
Map=null;

0 commit comments

Comments
 (0)