目前在webserver.pp文件中有以下内容:
public static int order(int num) {
//fetch the first two digits
int lastDigit = num%10, digit;
num /= 10;
digit = num%10;
if(digit == 0) ???;//case where only one digit, handle it as you wish
while(digit==lastDigit) {
lastDigit = digit;
num /= 10;
digit = num%10;
}
if(digit == 0) ???;//case where repeated digit, handle it as you wish
//is it ascending so far?
boolean ascending = digit > lastDigit;
while(num != 0) {
lastDigit = digit;
digit = num%10;
while(digit==lastDigit) {
lastDigit = digit;
num /= 10;
digit = num%10;
}
//this handles the case where the last digits are the same
if(num == 0) break;
//if not same direction, return 0 (not ordered)
if(ascending != digit>lastDigit) return 0;
num /= 10;
}
if(ascending) return 1; //ascending
else return -1; //descending
}
查看输出到/etc/httpd/conf.d/mime.conf后我可以看到输出确实包含:
' AddType application / font-woff .woff'
但是,在提供字体时,这似乎不会生效,因为它与Content-Type:text / html一起提供。
是否有一些标志我没有启用mime类型? - 我对傀儡的部署非常陌生,所以对此感到头疼。
Vagrant Box: CentOS 6.6 x86